#include "start.h"
#include "ui_start.h"
#include "mainwindow.h"
#include "menu.h"

start::start(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::start)
{
    ui->setupUi(this);
}

start::~start()
{
    delete ui;
}

void start::on_startgame_clicked()
{
    this->hide();
    emit startgame();
    MainWindow * a=new MainWindow;
    a->show();
}

void start::on_exit_clicked()
{
    exit(0);
}

void start::on_setgame_clicked()
{
    this->hide();
    emit tomenu();
    //menu* a=new menu;
    //a->show();
}
void  start::startshow()
{
    this->show();
}


